package com.xyht.sca_s.student_manage_system.modules.carUseManage.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xyht.sca_s.student_manage_system.common.commonReturn.ResponseResult;
import com.xyht.sca_s.student_manage_system.modules.carUseManage.entity.SmsCarUseApplication;
import com.xyht.sca_s.student_manage_system.modules.carUseManage.entity.req.SmsCarUseApplicationAllowReq;
import com.xyht.sca_s.student_manage_system.modules.carUseManage.entity.req.SmsCarUseApplicationCancelReq;
import com.xyht.sca_s.student_manage_system.modules.carUseManage.entity.req.SmsCarUseApplicationExportReq;
import com.xyht.sca_s.student_manage_system.modules.carUseManage.entity.req.SmsCarUseApplicationReq;

import javax.servlet.http.HttpServletResponse;
import java.util.concurrent.Future;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author XYHT
 * @since 2023-07-31
 */
public interface SmsCarUseApplicationService extends IService<SmsCarUseApplication> {

    ResponseResult addApplication(SmsCarUseApplicationReq applicationReq, String userId);

    ResponseResult cancelApplication(SmsCarUseApplicationCancelReq cancelReq, String userId);

    ResponseResult getList(Integer pageSize,String search_str, Integer pageNum, Integer apply_type, String userId);

    ResponseResult getDetail(String apply_id, String userId);

    ResponseResult getCarUseApplicationOriginSettingProcess();

    ResponseResult selectAllCarUseApply(String apply_unit, Integer pageSize, Integer pageNum);

    Future<ResponseResult> tableDownload(String apply_id, HttpServletResponse response);

    Future<ResponseResult> exportCarUseApplication(SmsCarUseApplicationExportReq exportReq, HttpServletResponse response);

    ResponseResult allowApplication(SmsCarUseApplicationAllowReq allowVO, String user_id);

    ResponseResult selectByTime(String useStartTime, String useEndTime);
}
